package com.intelligentcar.springboot.service.serverImpl;

import com.intelligentcar.springboot.bean.Advertisement;
import com.intelligentcar.springboot.bean.News;
import com.intelligentcar.springboot.bean.Partner;
import com.intelligentcar.springboot.mapper.PartnerMapper;
import com.intelligentcar.springboot.service.NewsService;
import com.intelligentcar.springboot.service.PartnerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class PartnerServerImpl implements PartnerService {

    @Autowired
    private PartnerMapper partnerMapper;

    @Override
    public List<Partner> LookL(Partner partner) {
        return partnerMapper.LookL(partner);
    }

    @Override
    public List<Partner> LookT(String addTime) {
        return partnerMapper.LookT(addTime);
    }

    @Override
    public List<Partner> Lookpartner() {
        return partnerMapper.Lookpartner();
    }

    @Override
    public int selectpartner() {
        return partnerMapper.selectpartner();
    }

    @Override
    public int updatepartner(Partner partner) {
        return partnerMapper.updatepartner(partner);
    }

    @Override
    public int deletepartner(long id) {
        return partnerMapper.deletepartner(id);
    }

    @Override
    public int addpartner(Partner partner) {
        return partnerMapper.addpartner(partner);
    }

//    @Override
//    public List<Partner>  LookKK(Partner partner) {
//        return partnerMapper.LookKK(partner);
//    }
//
//    @Override
//    public int addADD(int id ) {
//        return partnerMapper.addADD(id);
//    }

    @Override
    public List<Advertisement> LookAdvertisement() {
        return partnerMapper.LookAdvertisement();
    }
}
